#include <iostream>
#define STRING_LENGTH 100

int main()
{
    using namespace std;
    char names[10][STRING_LENGTH];

    cout << "Please input a line (EOF(Win:CTRL-Z  Linux:CTRL-D)) to continue) :";
    while (cin.get() != EOF)
    {
        cout << cin.get();
    }

    //注意以下两种形式的区别
    /*
    int ch;
    while((ch=cin.get())!=EOF){
        cout<<(char)ch;
    }
    */

    // while (cin.get() != EOF)
    // {
    //     cout << cin.get();
    // }

    return 0;
}